]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-global: Only sync input region if X11 session
authorJonas Ådahl <jadahl@gmail.com>
Fri, 16 Aug 2019 14:28:22 +0000 (16:28 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 19 Aug 2019 09:20:44 +0000 (09:20 +0000)
We'd do an early out in the called functions eventually anyway.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/682

src/shell-global.c

index ca43257ad3e3300b8b1bbba25c6376dd5fdb73a0..06f2be2aa453a22b53f3d5d3b8cf7d1c003a949d 100644 (file)
@@ -937,7 +937,8 @@ shell_global_begin_modal (ShellGlobal       *global,
     return FALSE;
 
   global->has_modal = meta_plugin_begin_modal (global->plugin, options, timestamp);
-  sync_input_region (global);
+  if (!meta_is_wayland_compositor ())
+    sync_input_region (global);
   return global->has_modal;
 }
 
@@ -967,7 +968,8 @@ shell_global_end_modal (ShellGlobal *global,
     meta_display_focus_default_window (global->meta_display,
                                        get_current_time_maybe_roundtrip (global));
 
-  sync_input_region (global);
+  if (!meta_is_wayland_compositor ())
+    sync_input_region (global);
 }
 
 /* Code to close all file descriptors before we exec; copied from gspawn.c in GLib.